Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

筆記、[ALG101] 虛擬碼

筆記、[ALG101] 虛擬碼

Day00:V8 bytecode 系列文介紹

Day00:V8 bytecode 系列文介紹

How to Set Up Firewall with UFW on Ubuntu 20.04

How to Set Up Firewall with UFW on Ubuntu 20.04


Comments